class Line:
    """
    线路类
     dir列表包括:dir1First	dir1Last	dir2First	dir2Last
     间隔时间gapTime
     isLoop	loopTime	speed
     neighbours = {"2号线":["西直门","东直门"]}邻接点
     stations = {"丰台站":站实例}
     该属性已经废弃：stationMap = {国家图书馆: [('白石桥南', 1096, 2)]}
    """
    def __init__(self, name:str,dir:list,gapTime:int,isLoop:int,loopTime:int,speed:float):
        self.name = name
        self.dir1First = dir[0]
        self.dir1Last = dir[1]
        self.dir2First = dir[2]
        self.dir2Last = dir[3]
        self.gapTime = gapTime
        self.isLoop = isLoop
        self.loopTime = loopTime
        self.speed = speed
        self.neighbours = {}
        self.stations = {}
        # self.stationMap = {}


class Station:
    """
    站台对象，包含站台基本信息
    neighbours包含{"邻居名字":{"dist":1232,"time":2}}
    """
    def __init__(self,name:str,vTime:int):
        self.name = name
        self.vTime = vTime
        self.isTrans = False
        self.neighbours = {}
